/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package optimizacion;

/**
 *
 * @author ricardo
 */
public class Tupla {

    int A, B;

    public Tupla(int A, int B) {
        this.A = A;
        this.B = B;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 83 * hash + this.A;
        hash = 83 * hash + this.B;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Tupla other = (Tupla) obj;
        if (this.A != other.A) {
            return false;
        }
        if (this.B != other.B) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "[ " + A + " , " + B + " ]";
    }
}
